package com.vimi8.ebb.dto;

import com.vimi8.ebb.model.Logistics;

/**
 * 物流信息DTO
 * Created by xiehuang on 2017/1/19.
 */
public class LogisticsDTO extends Logistics {
    private String affiliationName;//归属机构名称

    public String getAffiliationName() {
        return affiliationName;
    }

    public void setAffiliationName(String affiliationName) {
        this.affiliationName = affiliationName;
    }

    /**
     * 填充父类
     *
     * @param logistics
     */
    public void fill(Logistics logistics) {
        setId(logistics.getId());
        setBranchName(logistics.getBranchName());//网点名称
        setBranchAddress(logistics.getBranchAddress());//网点地址
        setBranchAddressCode(logistics.getBranchAddressCode());//网点地址编码
        setAffiliationId(logistics.getAffiliationId());//归属机构ID
        setPrincipal(logistics.getPrincipal());//负责人
        setContact(logistics.getContact());//联系方式
        setStaffs(logistics.getStaffs());//员工数
        setVehicles(logistics.getVehicles());//车辆数
        setTradeStatisticsTime(logistics.getTradeStatisticsTime());//交易统计时间
        setMonthOutAmount(logistics.getMonthOutAmount());//月发出量
        setMonthInAmount(logistics.getMonthInAmount());//月发入量
        setShippingOrderId(logistics.getShippingOrderId());//运单编号
        setShippingAddress(logistics.getShippingAddress());//收货地址
        setShippingAddressCode(logistics.getShippingAddressCode());//收货地址编码
        setDeliveryArea(logistics.getDeliveryArea());//配送区域
        setDeliveryAreaCode(logistics.getDeliveryAreaCode());//配送区域编码
        setCreateTime(logistics.getCreateTime());//创建时间
        setUpdateTime(logistics.getUpdateTime());//更新时间
    }

}
